<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!--导航-->
<c:set value="<%=request.getContextPath() %>" var="contextPath" scope="session"/>
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
    <div class="container">
        <div class="navbar-header">
            <a href="#" class="navbar-brand"><img src="${contextPath}/images/logo.png"></a>
        </div>
        <div class="collapse navbar-collapse">
            <ul class="nav navbar-nav cynav" id="navs">
                <li class="active"><a href="#">首页</a></li>
                <li><a href="#">找工作</a></li>
                <li><a href="#">找名企</a></li>
                <li><a href="#">创业新秀</a></li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <c:choose>
                    <c:when test="${sessionScope.loginUser != null}">
                        <li><a href="#">欢迎您,${sessionScope.loginUser.loginName}</a></li>
                        <li><a href="<c:url value="/login_out_user" />">登出</a></li>
                    </c:when>
                    <c:otherwise>
                        <li><a href="#" data-toggle="modal" data-target="#loginModal">登陆</a></li>
                        <li><a href="#" data-toggle="modal" data-target="#registerModal">注册</a></li>
                    </c:otherwise>
                </c:choose>
            </ul>
        </div>
    </div>
</div>
